<template>
  <div class="interfaces">
    <!-- 按钮 -->
    <div class="btns">
      <el-button type="primary" size="small">新增</el-button>
    </div>
    <!-- /按钮 -->
    <!-- {{interfaces}} -->
    <!-- 表格 -->
    <el-table size="small" :data="interfaces">
      <el-table-column type="index" :index="1" label="序号"></el-table-column>
      <el-table-column label="名称" prop="name" align="center"></el-table-column>
      <el-table-column label="状态" prop="status" align="center"></el-table-column>
      <el-table-column label="接口" prop="url" align="center"></el-table-column>
      <el-table-column label="限制时间" prop="limitTimes" align="center"></el-table-column>
      <el-table-column label="用户" prop="userName" align="center"></el-table-column>
      <el-table-column label="模型顺序" prop="moduleId" align="center"></el-table-column>
      <el-table-column label="用户" prop="userName" align="center"></el-table-column>
    </el-table>
    <!-- /表格 -->
  </div>
</template>
<script>
import {get,post} from '@/utils/request'
export default {
  // 页面数据
  data(){
    return {
      interfaces:[]
    }
  },
  // 页面渲染的时候会调用的函数
  created(){
    this.loadinterFaces();
  },
  // 所有的方法
  methods:{
    loadinterFaces(){
      let url = 'http://localhost:8888/interfaces/query'
      get(url).then((resp)=>{
        this.interfaces = resp.data;
      })
    }
  }
}
</script>
<style scoped>

</style>